/**
 * FileName: UserController
 *
 * @author: 阿张
 * Date:     2021/3/23 11:23
 */
package com.housing.member.controller;

import com.housing.member.pojo.HUser;
import com.housing.member.service.HUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("admin")
public class UserController {

    @Resource
    private HUserService hUserService;

    @RequestMapping(value = "loadByUsername",method = RequestMethod.POST)
    public HUser loadByUsername(@RequestParam String username){
        return hUserService.selectByName(username);
    }
}
